﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

/// <summary>
/// Summary description for CCartItemp
/// </summary>
public class CCartItemp
{
    private int _product;
    private string _productName;

    public string ProductName
    {
        get { return _productName; }
        set { _productName = value; }
    }
    private int _price;

    public int Price
    {
        get { return _price; }
        set { _price = value; }
    }
    private int _quantity;

    public int Quantity
    {
        get { return _quantity; }
        set { _quantity = value; }
    }

    public int Product
    {
        get { return _product; }
        set { _product = value; }
    }

    private long _ThanhTien;

    public long ThanhTien
    {
        get { return _ThanhTien; }
        set { _ThanhTien = value; }
    }
	public CCartItemp(int productID,int quantity,string name,int price)
	{
        _product = productID;
        _quantity = quantity;
        _productName = name;
        _price = price;
        _ThanhTien = _price * _quantity;
	}

    public void TinhThanhTien()
    {
        _ThanhTien = _quantity * _price;
    }
}
